<?php

namespace plugin\ycMassage\app\validate;

use think\Validate;


class MassageAddress extends Validate
{
    protected $rule =   [
        'province_id'  => 'require',
        'city_id'  => 'require',
        'area_id'  => 'require',
        'address_detail' => 'require',
        'name' => 'require',
        'mobile' => 'require|mobile',
        'latitude' => 'require',
        'longitude' => 'require',
    ];

    protected $message  =   [
        'province_id.require' => '请选择地区',
        'city_id.require' => '请选择地区',
        'area_id.require' => '请选择地区',
        'address_detail.require' => '详细地址必须',
        'name.require' => '姓名必须',
        'mobile.require' => '手机号必须',
        'mobile.mobile' => '手机号格式错误',
        'latitude.require' => '定位出错',
        'longitude.require' => '定位出错',
    ];
}
